import request from '@/utils/request'

// 查询基金收益或项目回款明细列表
export function listFundIncomeDetail(query) {
  return request({
    url: '/incomeDetail/fundIncomeDetail/list',
    method: 'get',
    params: query
  })
}

// 查询基金收益或项目回款明细详细
export function getFundIncomeDetail(id) {
  return request({
    url: '/incomeDetail/fundIncomeDetail/' + id,
    method: 'get'
  })
}

// 保存基金收益或项目回款明细
export function saveFundIncomeDetail(data) {
  return request({
    url: '/incomeDetail/fundIncomeDetail/save',
    method: 'post',
    data: data
  })
}

// 删除基金收益或项目回款明细
export function delFundIncomeDetail(id) {
  return request({
    url: '/incomeDetail/fundIncomeDetail/' + id,
    method: 'delete'
  })
}

// 导出基金收益或项目回款明细
export function exportFundIncomeDetail(query) {
  return request({
    url: '/incomeDetail/fundIncomeDetail/export',
    method: 'get',
    params: query
  })
}

// 批量保存基金收益或项目回款明细
export function batchSaveIncomeDetail(list) {
  return request({
    url: '/incomeDetail/fundIncomeDetail/batchSave',
    method: 'post',
    data: list
  })
}
